package com.suguowen.sblog.mapper;

import com.suguowen.sblog.bean.Article_detail;
import com.suguowen.sblog.bean.Article_detailExample;
import com.suguowen.sblog.bean.Article_detailWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface Article_detailMapper {
    long countByExample(Article_detailExample example);

    int deleteByExample(Article_detailExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Article_detailWithBLOBs record);

    int insertSelective(Article_detailWithBLOBs record);

    List<Article_detailWithBLOBs> selectByExampleWithBLOBs(Article_detailExample example);

    List<Article_detail> selectByExample(Article_detailExample example);

    Article_detailWithBLOBs selectByPrimaryKey(Integer id);

    // 通过id拿md
    @Select("select md_content from article_detail where art_id = #{id} ")
    String selectByArtId(Integer id);

    int updateByExampleSelective(@Param("record") Article_detailWithBLOBs record, @Param("example") Article_detailExample example);

    int updateByExampleWithBLOBs(@Param("record") Article_detailWithBLOBs record, @Param("example") Article_detailExample example);

    int updateByExample(@Param("record") Article_detail record, @Param("example") Article_detailExample example);

    int updateByPrimaryKeySelective(Article_detailWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(Article_detailWithBLOBs record);

    int updateByPrimaryKey(Article_detail record);
}